From 5f10c89f28feda53f8de4283484120d86e72829b Mon Sep 17 00:00:00 2001 From: Ingo Heinrich Date: Sat, 4 Mar 2023 12:17:50 +0100 Subject: [PATCH] luci-mod-status: nftables add counter and comment for empty match Signed-off-by: Ingo Heinrich (cherry picked from commit 8c7c56f4e415a3b80bf91c98aa02a638111bef51) --- .../htdocs/luci-static/resources/view/status/nftables.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/luci-mod-status/htdocs/luci-static/resources/view/status/nftables.js b/modules/luci-mod-status/htdocs/luci-static/resources/view/status/nftables.js index 33a19bee2b..7b1a3badb2 100644 --- a/modules/luci-mod-status/htdocs/luci-static/resources/view/status/nftables.js +++ b/modules/luci-mod-status/htdocs/luci-static/resources/view/status/nftables.js @@ -508,7 +508,7 @@ return view.extend({ } if (empty) - dom.content(row.childNodes[0], E('em', [ _('Any packet', 'nft match any traffic') ])); + dom.append(row.childNodes[0], E('span', { 'class': 'ifacebadge' }, '%h'.format(_('Any packet', 'nft match any traffic')))); return row; }, -- 2.30.2